package com.sinosoft.cloud.access.net;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * cloud-netty
 *
 * @title: cloud-netty
 * @package: com.sinosoft.cloud.access.net
 * @author: yangming
 * @date: 2017/12/2 上午11:58
 */
@ConfigurationProperties(prefix = "spring.netty")
public class NettyProperties {
    private Map servers;
    private int workerThreads;


    private Boolean tcpNoDelay;
    private Integer tcpSendBufferSize;
    private Integer tcpReceiveBufferSize;
    private Boolean tcpKeepAlive;
    private Integer soLinger;
    private Boolean reuseAddress;
    private Integer acceptBackLog;

    public Map getServers() {
        return servers;
    }

    public void setServers(Map servers) {
        this.servers = servers;
    }


    public int getWorkerThreads() {
        return workerThreads;
    }

    public void setWorkerThreads(int workerThreads) {
        this.workerThreads = workerThreads;
    }


    public Boolean getTcpNoDelay() {
        return tcpNoDelay;
    }

    public void setTcpNoDelay(Boolean tcpNoDelay) {
        this.tcpNoDelay = tcpNoDelay;
    }

    public Integer getTcpSendBufferSize() {
        return tcpSendBufferSize;
    }

    public void setTcpSendBufferSize(Integer tcpSendBufferSize) {
        this.tcpSendBufferSize = tcpSendBufferSize;
    }

    public Integer getTcpReceiveBufferSize() {
        return tcpReceiveBufferSize;
    }

    public void setTcpReceiveBufferSize(Integer tcpReceiveBufferSize) {
        this.tcpReceiveBufferSize = tcpReceiveBufferSize;
    }

    public Boolean getTcpKeepAlive() {
        return tcpKeepAlive;
    }

    public void setTcpKeepAlive(Boolean tcpKeepAlive) {
        this.tcpKeepAlive = tcpKeepAlive;
    }

    public Integer getSoLinger() {
        return soLinger;
    }

    public void setSoLinger(Integer soLinger) {
        this.soLinger = soLinger;
    }

    public Boolean getReuseAddress() {
        return reuseAddress;
    }

    public void setReuseAddress(Boolean reuseAddress) {
        this.reuseAddress = reuseAddress;
    }

    public Integer getAcceptBackLog() {
        return acceptBackLog;
    }

    public void setAcceptBackLog(Integer acceptBackLog) {
        this.acceptBackLog = acceptBackLog;
    }
}
